home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / Quasar / PC-Task3.1 / Install-PCTask < prev    next >
Text File  |  1995-03-24  |  9KB  |  497 lines

  1. ; PC-Task v3.0 Install Script (1.1)
  2. ; 23/3/95    Copyright 1994-1995 Quasar Distribution
  3. ; Translated by:
  4.  
  5. (set @default-dest "SYS:")
  6.  
  7. ; English language
  8.  
  9. (set #pctask-location
  10. (cat "Select location to put PC-Task 3 directory:"
  11. ))
  12.  
  13. (set #copying-files
  14. (cat "Copying files..."
  15. ))
  16.  
  17. (set #help-askbool
  18. (cat "Please select Yes to install the file(s) "
  19.      "or select No so they are not installed. "
  20. ))
  21.  
  22. (set #data-set
  23. (cat "Which programs do you wish to install?"
  24. ))
  25.  
  26. (set #insert_disktwo
  27. (cat "Please insert PC-Task Disk Two.\n"
  28. ))
  29.  
  30. (set #whichone-help
  31. (cat "You are able to choose which PC-Task program "
  32.      "to install.  The difference is that the Turbo "
  33.      "version of PC-Task uses 4 times as much memory "
  34.      "and the program is over twice the size, but the "
  35.      "advantage is you get faster emulation. " 
  36. ))
  37.  
  38. (set #notknown-set
  39. (cat "CPU not known.  Please chose program to install."
  40. ))
  41.  
  42. (set #install-asl
  43. (cat "You have Kickstart 2.0+\nasl.library can be used\n"
  44.      "This allows you to select your screen modes from "
  45.      "a list of available modes on your machine. "
  46. ))
  47.  
  48. (set #install-hardfiledevice
  49. (cat "Do you wish to install the hardfile.device?\n"
  50.      "This is needed if you wish to access a PC drive "
  51.      "(which you have created for PC-Task) from AmigaDOS "
  52. ))
  53.  
  54. (set #copy-hardfile
  55. (cat "Copying hardfile.device"
  56. ))
  57.  
  58. (set #install-msdosutils
  59. (cat "Do you wish to install the MSDOSUtils directory?\n"
  60.      "This directory contains some useful utilities "
  61.      "which will come in handy when using PC-Task. "
  62. ))
  63.  
  64. (set #install-tdpatch
  65. (cat "Do you wish to install the TDPatch1213 program?\n"
  66.      "This is necessary if you are running Kickstart 1.3 "
  67.      "or Kickstart 1.2.  It patches the disk drive so "
  68.      "PC-Task will work correctly.  TDPatch1213 should be "
  69.      "run before you start PC-Task. "
  70. ))
  71.  
  72. (set #install-leaveslowfast
  73. (cat "Do you wish to install the LeaveSlowFast program?\n"
  74.      "This program is useful to get more memory when you "
  75.      "have a machine with 512K Chip memory and 512K Fast "
  76.      "RAM.  Use this so PC-Task can allocate more memory "
  77.      "for its emulation. "
  78. ))
  79.  
  80. (set #copy-msdosutils
  81. (cat "Copying MSDOSUtils directory"
  82. ))
  83.  
  84. ;--------------------------------------------------
  85.  
  86. (set dest2    (askdir    (prompt #pctask-location)
  87.             (default @default-dest)
  88.             (help @askdir-help)
  89.             )
  90. )
  91.  
  92. (set dest1 (tackon dest2 "PC-Task"))
  93. (makedir dest1 (infos))
  94.  
  95. ; copy the PC-Task program
  96. (set machine (database "cpu"))
  97.  
  98. (if (OR (= machine "68000") (= machine "68010"))
  99.     (
  100.         (set types_to_install
  101.             (askoptions
  102.                 (prompt #data-set)
  103.                 (help #whichone-help)
  104.                 (choices "PC-Task68000_10"
  105.                      "PC-TaskTurbo68000_10"
  106.                 )
  107.             )
  108.         )
  109.  
  110.         (if (IN types_to_install 0)
  111.             (
  112.                 (copyfiles
  113.                     (prompt #copying-files)
  114.                     (source "PCT3_Disk1:")
  115.                     (dest dest1)
  116.                     (choices "PC-Task68000_10")
  117.                     (infos)
  118.                     (help @copyfiles-help)
  119.                 )
  120.                 (tooltype
  121.                     (help @tooltype-help)
  122.                     (dest (tackon dest1 "PC-Task68000_10"))
  123.                     (noposition)
  124.                     (swapcolors)
  125.                 ) 
  126.             )
  127.         )
  128.     
  129.         (if (IN types_to_install 1)
  130.             (
  131.                 (askdisk
  132.                     (prompt #insert_disktwo)
  133.                     (dest "PCT3_Disk2")
  134.                     (help @askdisk-help)
  135.                 )
  136.                 (copyfiles
  137.                     (prompt #copying-files)
  138.                     (source "PCT3_Disk2:")
  139.                     (dest dest1)
  140.                     (choices "PC-TaskTurbo68000_10")
  141.                     (infos)
  142.                     (help @copyfiles-help)
  143.                 )
  144.                 (tooltype
  145.                     (help @tooltype-help)
  146.                     (dest (tackon dest1 "PC-TaskTurbo68000_10"))
  147.                     (noposition)
  148.                     (swapcolors)
  149.                 ) 
  150.             )
  151.         )
  152.     )
  153.  
  154.     (
  155.         (if (OR (= machine "68020") (= machine "68030") (= machine "68040"))
  156.             (
  157.  
  158.                 (set types_to_install
  159.                     (askoptions
  160.                         (prompt #data-set)
  161.                         (help #whichone-help)
  162.                         (choices "PC-Task68020_60"
  163.                              "PC-TaskTurbo68020_60"
  164.                         )
  165.                     )
  166.                 )
  167.  
  168.                 (if (IN types_to_install 0)
  169.                     (
  170.                         (copyfiles
  171.                             (prompt #copying-files)
  172.                             (source "PCT3_Disk1:")
  173.                             (dest dest1)
  174.                             (choices "PC-Task68020_60")
  175.                             (infos)
  176.                             (help @copyfiles-help)
  177.                         )
  178.                         (tooltype
  179.                             (help @tooltype-help)
  180.                             (dest (tackon dest1 "PC-Task68020_60"))
  181.                             (noposition)
  182.                             (swapcolors)
  183.                         ) 
  184.                     )
  185.                 )
  186.  
  187.                 (if (IN types_to_install 1)
  188.                     (
  189.                         (askdisk
  190.                             (prompt #insert_disktwo)
  191.                             (dest "PCT3_Disk2")
  192.                             (help @askdisk-help)
  193.                         )
  194.                         (copyfiles
  195.                             (prompt #copying-files)
  196.                             (source "PCT3_Disk2:")
  197.                             (dest dest1)
  198.                             (choices "PC-TaskTurbo68020_60")
  199.                             (infos)
  200.                             (help @copyfiles-help)
  201.                         )
  202.                         (tooltype
  203.                             (help @tooltype-help)
  204.                             (dest (tackon dest1 "PC-TaskTurbo68020_60"))
  205.                             (noposition)
  206.                             (swapcolors)
  207.                         ) 
  208.                     )
  209.                 )
  210.     
  211.             )
  212.  
  213.  
  214.             (
  215.                 (set types_to_install
  216.                     (askoptions
  217.                         (prompt #notknown-set)
  218.                         (help #whichone-help)
  219.                         (choices "PC-Task68000_10"
  220.                              "PC-TaskTurbo68000_10"
  221.                              "PC-Task68020_60"
  222.                              "PC-TaskTurbo68020_60"
  223.                         )
  224.                     )
  225.                 )
  226.  
  227.                 (if (IN types_to_install 0)
  228.                     (
  229.                         (copyfiles
  230.                             (prompt #copying-files)
  231.                             (source "PCT3_Disk1:")
  232.                             (dest dest1)
  233.                             (choices "PC-Task68000_10")
  234.                             (infos)
  235.                             (help @copyfiles-help)
  236.                         )
  237.                         (tooltype
  238.                             (help @tooltype-help)
  239.                             (dest (tackon dest1 "PC-Task68000_10"))
  240.                             (noposition)
  241.                             (swapcolors)
  242.                         ) 
  243.                     )
  244.                 )
  245.             
  246.                 (if (IN types_to_install 1)
  247.                     (
  248.                         (askdisk
  249.                             (prompt #insert_disktwo)
  250.                             (dest "PCT3_Disk2")
  251.                             (help @askdisk-help)
  252.                         )
  253.                         (copyfiles
  254.                             (prompt #copying-files)
  255.                             (source "PCT3_Disk2:")
  256.                             (dest dest1)
  257.                             (choices "PC-TaskTurbo68000_10")
  258.                             (infos)
  259.                             (help @copyfiles-help)
  260.                         )
  261.                         (tooltype
  262.                             (help @tooltype-help)
  263.                             (dest (tackon dest1 "PC-TaskTurbo68000_10"))
  264.                             (noposition)
  265.                             (swapcolors)
  266.                         ) 
  267.                     )
  268.                 )
  269.  
  270.                 (if (IN types_to_install 2)
  271.                     (
  272.                         (copyfiles
  273.                             (prompt #copying-files)
  274.                             (source "PCT3_Disk1:")
  275.                             (dest dest1)
  276.                             (choices "PC-Task68020_60")
  277.                             (infos)
  278.                             (help @copyfiles-help)
  279.                         )
  280.                         (tooltype
  281.                             (help @tooltype-help)
  282.                             (dest (tackon dest1 "PC-Task68020_60"))
  283.                             (noposition)
  284.                             (swapcolors)
  285.                         ) 
  286.                     )
  287.                 )
  288.             
  289.                 (if (IN types_to_install 3)
  290.                     (                
  291.                         (askdisk
  292.                             (prompt #insert_disktwo)
  293.                             (dest "PCT3_Disk2")
  294.                             (help @askdisk-help)
  295.                         )
  296.                         (copyfiles
  297.                             (prompt #copying-files)
  298.                             (source "PCT3_Disk2:")
  299.                             (dest dest1)
  300.                             (choices "PC-TaskTurbo68020_60")
  301.                             (infos)
  302.                             (help @copyfiles-help)
  303.                         )
  304.                         (tooltype
  305.                             (help @tooltype-help)
  306.                             (dest (tackon dest1 "PC-TaskTurbo68020_60"))
  307.                             (noposition)
  308.                             (swapcolors)
  309.                         ) 
  310.                     )
  311.                 )
  312.             )
  313.         )
  314.     )
  315. )
  316.  
  317.  
  318. (copyfiles
  319.     (source "PCT3_Disk1:")
  320.     (dest dest1)
  321.     (choices "README_FIRST!")
  322.     (infos)
  323.     (help @copyfiles-help)
  324. )
  325.  
  326. (tooltype
  327.     (help @tooltype-help)
  328.     (dest (tackon dest1 "README_FIRST!"))
  329.     (noposition)
  330.     (setdefaulttool "more")
  331.  
  332. (copyfiles
  333.     (source "PCT3_Disk1:")
  334.     (dest dest1)
  335.     (choices "PCTCrossMount")
  336.     (infos)
  337.     (help @copyfiles-help)
  338. )
  339.  
  340. (tooltype
  341.     (help @tooltype-help)
  342.     (dest (tackon dest1 "PCTCrossMount"))
  343.     (noposition)
  344.  
  345. (copyfiles
  346.     (source "PCT3_Disk1:")
  347.     (dest dest1)
  348.     (choices "PCTCrossMount.doc")
  349.     (infos)
  350.     (help @copyfiles-help)
  351. )
  352.  
  353. (tooltype
  354.     (help @tooltype-help)
  355.     (dest (tackon dest1 "PCTCrossMount.doc"))
  356.     (noposition)
  357.     (setdefaulttool "more")
  358.         
  359. (set vernum (getversion))
  360. (set ver (/ vernum 65536))
  361.  
  362. (if (AND (>= ver 37) (<= ver 38))
  363.     (
  364.         (copylib
  365.             (prompt #install-asl)
  366.             (source "PCT3_Disk1:libs/asl.library")
  367.             (dest "libs:")
  368.             (optional nofail askuser force)
  369.             (confirm)
  370.             (help @copylib-help)
  371.         )
  372.     )
  373. )
  374.  
  375.  
  376. (if (<= ver 34)
  377.     (
  378.         (set hardy
  379.             (askbool
  380.                 (prompt #install-tdpatch)
  381.                 (help #help-askbool)
  382.             )
  383.         )
  384.  
  385.         (if (= hardy 1)
  386.             (
  387.                 (copyfiles
  388.                     (prompt #copying-files)
  389.                     (source "PCT3_Disk1:")
  390.                     (dest dest1)
  391.                     (choices "TDPatch1213"
  392.                              "TDPatch1213.doc")
  393.                     (infos)
  394.                     (help @copyfiles-help)
  395.                 )
  396.                 (tooltype
  397.                     (help @tooltype-help)
  398.                     (dest (tackon dest1 "TDPatch1213"))
  399.                     (noposition)
  400.                 ) 
  401.                 (tooltype
  402.                     (help @tooltype-help)
  403.                     (dest (tackon dest1 "TDPatch1213.doc"))
  404.                     (noposition)
  405.                     (setdefaulttool "more")
  406.                 ) 
  407.             )
  408.         )
  409.     )
  410. )
  411.  
  412. (set hardy     (askbool
  413.             (prompt #install-leaveslowfast)
  414.             (help #help-askbool)
  415.         )
  416. )
  417.  
  418. (if (= hardy 1)
  419.     (
  420.         (copyfiles
  421.             (prompt #copy-hardfile)
  422.             (source "PCT3_Disk1:")
  423.             (dest dest1)
  424.             (choices "LeaveSlowFast"
  425.                      "LeaveSlowFast.doc")
  426.             (infos)
  427.             (help @copyfiles-help)
  428.         )
  429.         (tooltype
  430.             (help @tooltype-help)
  431.             (dest (tackon dest1 "LeaveSlowFast"))
  432.             (noposition)
  433.         ) 
  434.         (tooltype
  435.             (help @tooltype-help)
  436.             (dest (tackon dest1 "LeaveSlowFast.doc"))
  437.             (noposition)
  438.             (setdefaulttool "more")
  439.         ) 
  440.     )
  441. )
  442.  
  443.  
  444.  
  445. (set hardy     (askbool
  446.             (prompt #install-hardfiledevice)
  447.             (help #help-askbool)
  448.         )
  449. )
  450.  
  451. (if (= hardy 1)
  452.     (copylib
  453.         (prompt #copy-hardfile)
  454.         (source "PCT3_Disk1:devs/hardfile.device")
  455.         (dest "devs:")
  456.         (optional nofail askuser force)
  457.         (confirm)
  458.         (help @copyfiles-help)
  459.     )
  460. )
  461.  
  462.  
  463. (set hardy     (askbool
  464.             (prompt #install-msdosutils)
  465.             (help #help-askbool)
  466.         )
  467. )
  468.  
  469. (if (= hardy 1)
  470.     (
  471.         (set dest2 (tackon dest1 "MSDOSUtils"))
  472.         (copyfiles
  473.             (infos)
  474.             (prompt #copy-msdosutils)
  475.             (source "PCT3_Disk1:MSDOSUtils")
  476.             (dest dest2)
  477.             (all)
  478.             (help @copyfiles-help)
  479.         )
  480.         (tooltype
  481.             (help @tooltype-help)
  482.             (dest dest2)
  483.             (noposition)
  484.         )
  485.         (tooltype
  486.             (help @tooltype-help)
  487.             (dest (tackon dest2 "ProduceUtilDisk.doc"))
  488.             (setdefaulttool "more") 
  489.         )    
  490.     )
  491. )
  492.  
  493. (set @default-dest dest1)
  494.